package com.ylxin.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 29048
 * @version V1.0
 * @Project mybatis
 * @Package com.ylxin.servlet
 * @Description: 服务端处理请求返回响应程序
 * Create by 杨立新 @Date 2022/8/23 19:20
 */
@WebServlet("/login")
public class TestServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.err.println("TestServlet中的方法doGet执行了Exercese");
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doGet(req,resp);
    }
}
